package com.bdweb.mokuai;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class logWrite {
    BufferedWriter bw1=new BufferedWriter(new FileWriter("Config/log.txt",true));
    SimpleDateFormat sbf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public logWrite(String name) throws IOException {
        Date d=new Date();
        String format = sbf1.format(d);
        bw1.write(format);
        bw1.write(name);
        bw1.newLine();
        bw1.close();
    }
}
